package com.wudl.govern.db;

import com.wudl.govern.db.constants.DbType;
import com.wudl.govern.db.dialect.DialectRegistry;

/**
 * @author ：wudl
 * @date ：Created in 2022-04-03 22:24
 * @description： 方言工厂类
 * @modified By：
 * @version: 1.0
 */
public class DialectFactory {

    private static final DialectRegistry DIALECT_REGISTRY = new DialectRegistry();

    public static DbDialect getDialect(DbType dbType) {
        return DIALECT_REGISTRY.getDialect(dbType);
    }
}
